package com.sfd.test.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sfd.core.entity.OrderCount;
import com.sfd.test.mapper.OrderCountMapper;
import com.sfd.test.service.OrderCountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @author haden
 * @date 2022/8/10 21:56
 **/
@Service
@Slf4j
public class OrderCountServiceImpl extends ServiceImpl<OrderCountMapper, OrderCount> implements OrderCountService {
    @Override
    public void create(Long orderId, BigDecimal balance) {
        OrderCount orderCount = new OrderCount();
        orderCount.setOrderId(orderId);
        orderCount.setBalance(balance);
        save(orderCount);
        int i = 1 / 0;
    }
}
